/*
 * @Description: 测试类
 * @Author: rendc
 * @Date: 2023-11-18 15:15:49
 * @LastEditors: rendc
 * @LastEditTime: 2023-11-19 10:50:44
 */
import java.util.Arrays;
public class Test{
  public static void main(String[] args){
    // int[] arr = new int[5];
    // System.out.println(arr);// [I@078098709
    // System.out.println(Arrays.toString(arr));// [0,0,0,0,0]
    // 创建学生的实例
    Student s1 = new Student();
    // Student s2 = new Student();
    // 成员属性赋值
    s1.name = "s1";
    s1.gender = "男";
    s1.age = 18;
    s1.xueHao = "2023011234";
    // 成员属性访问
    System.out.println("Student:"+s1.name+"性别:"+s1.gender+"年龄:"+s1.age+"学号:"+s1.xueHao);
    // 调用成员方法
    s1.sayHello();
    // 创建一个Phone类的实例对象p1
    Phone p1 = new Phone();
    // 调用p1的 sendMessage 方法
    p1.sendMessage("老莫","我想吃鱼了");
  }
}